package com.wuxianedu.wechat.util;

import java.util.Comparator;

import com.wuxianedu.wechat.bean.PersonBean;

public class PinyinComparator implements Comparator<PersonBean>{

	@Override
	public int compare(PersonBean o1, PersonBean o2) {
		if (o1.getSortLetters().equals("#")) {
			return -1;
		} else if (o2.getSortLetters().equals("#")) {
			return 1;
		} else {
			return o1.getSortLetters().compareTo(o2.getSortLetters());
		}
	}
}
